Auto merge of #3102 - nipunn1313:attempt, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 16 Nov 2016 15:02:22 +0000 (07:02 -0800)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2016 15:02:22 +0000 (07:02 -0800)
commit1877f59d6b2cb057f7ef6c6b34b926fd96a683c1
tree3752c236adb5ba45bd470c29006af2072bc36864
parenta9c23dd86b0caf3725ffb45dea1adb807247b66c
parent8e22eca9c8f013aad4ca95b7870243b4eb8ac8c6
Auto merge of #3102 - nipunn1313:attempt, r=alexcrichton

Mix feature flags into fingerprint/metadata shorthash

Since building dependencies results in different libraries
depending on the feature flags, I added the feature flags into
the short_hash.

This solves an issue when multiple crates share a target directory
or multiple targets share a common library with divergent feature
flag choice.

I'm not sure if this architecturally the best way to solve this problem, but I did confirm that this fixes the issue I was seeing. I can also add a test for this case if this code is taking the right approach (or if it would help illustrate the issue).